<?php $id="form_".uniqid();?>
<table id="<?php echo $id;?>"></table>
<script>
    $("#<?php echo $id;?>").DataSource({url:'cash/get_cash_list',
        fields:[[
            {field:'username',      title:'会员账号', width:150, sortable:false},
            {field:'money_type',   title: '币别',      width:100, sortable:true},
            {field:'type',  title:'类型',   width:80, sortable:true},
            {field:'cash_type',title:'交易类别',    width:150,  sortable:true},
            {field:'cash_money',title:'交易金额',      width:150,  sortable:true},
            {field:'money',    title:'金额',      width:150,  sortable:true},
            {field:'cash_date', title:'交易日期',      width:260,  sortable:true},
            {field:'money',   title:'下注金额',  width:150,  sortable:true},
            {field:'remark',  title:'备注（金额：元）',       width:150,  sortable:true}
        ]], tools:[
            {instant:false},
            <?php if(in_array('EDIT',$auth)){?>
            {text:"编辑",iconCls:"icon-edit",handler:function(){
                $('#<?php echo $id?>').DataSource('edit',{title:'查看',get:'member/edituser?type=<?php echo $type?>',full:false});
            }},
            <?php }?>
            {type:'textbox', text:'帐号', width:100,name:'username'},
            {type:'textbox', text:'订单号', width:100,name:'order_num'},
            {type:'combobox',text:'时区',width:100,name:'verify_status',value:'', items:'<option value="">美东</option><option value="1">北京</option>'},
            {type:'datebox', text:'存入日期', width:100,name:'sdate'},
            {type:'datebox', text:'-', width:100,name:'edate'},
            {type:'combobox',text:'方式',width:100,name:'type',value:'', items:'<option value="">全部方式</option><option value="0">额度转换</option><option value="2">体育下注</option>'},
            {type:'combobox',text:'刷新',width:100,name:'refresh',value:'', items:'<option value="">不更新</option><option value="1">30秒</option><option value="1">60秒</option><option value="1">120秒</option>'},
            {text:"搜索", iconCls:"icon-search", handler:function(){
                $('#<?php echo $id?>').DataSource('search');
            }},
            '-'
        ],
        checkbox:false,
        footer:true,
        success:function(){

        }
    });
</script>